<template>
  <div class="audition153">
    <v-md-preview :text="text1" />
  </div>
</template>

<script>
const prefix = '``` js'
const suffix = '```'
export default {
  name: 'Audition153',
  data() {
    return {
      text1: `${prefix}
      // n 是要求执行的次数
      var i = 60
      function interval(fn, delay, n) {
        function inner() {
          fn();
          setTimeout(inner, delay);
          clearTimeout(n + 1);
        }
        setTimeout(inner, delay);
      }
      interval(function () {
        console.log(i--);
      }, 1000, 60)
      \n${suffix}`,
    }
  }
}
</script>

<style>

</style>